<template>
  <div class="user-feedback-container">
    <div class="header">
      <van-nav-bar
        title="意见与反馈"
        left-text="返回"
        left-arrow
        @click-left="$router.back()"
      />
    </div>

    <div class="feedback-container">
      <h3>留言</h3>

      <van-field
        v-model="params.content"
        rows="2"
        autosize
        type="textarea"
        maxlength="150"
        placeholder="请输入留言"
        show-word-limit
        class="feedback-text"
      />
      <h3>联系方式</h3>
      <van-field
        v-model="params.phone"
        rows="1"
        autosize
        type="textarea"
        placeholder="请输入联系方式"
        class="address"
      />
      <div class="submit-btn">提交</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      params: {
        content: "",
        name: "",
        openId: localStorage.getItem("openId"),
        phone: "",
      },
    };
  },
};
</script>

<style scoped lang='scss'>
.user-feedback-container {
  background-color: #f8f8f8;
  height: calc(100vh - 108px);
  .header {
    height: 81px;
    padding-bottom: 20px;
    ::v-deep .van-nav-bar {
      height: 100%;
      .van-nav-bar__content {
        height: 100%;
      }
      .van-nav-bar__text {
        font-size: 31.2px;
        color: #666666;
        letter-spacing: 0;
        font-weight: 400;
      }
      .van-icon {
        width: 30px;
        height: 30px;
        color: #000;
      }
      .van-nav-bar__title {
        font-size: 36px;
        color: #333333;
        letter-spacing: 0;
        font-weight: 500;
      }
    }
  }
  .feedback-container {
    padding: 34px 20px 0 20px;
    h3 {
      font-size: 30px;
      color: #131313;
      letter-spacing: 0;
      font-weight: 500;
      margin-bottom: 21px;
    }
    .feedback-text {
      margin-bottom: 43px;
      .total {
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
        color: #cacaca;
        letter-spacing: 0;
        font-weight: 400;
      }
    }
    .address {
      height: 100px;
      background-color: #fff;
      margin-bottom: 82px;
    }
    .submit-btn {
      height: 90px;
      background: #cea62a;
      border-radius: 44.5px;
      font-size: 30px;
      color: #ffffff;
      letter-spacing: 0;
      font-weight: 500;
      @include center;
    }
  }
}
</style>